package org.lhq.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.lhq.entity.Share;
import org.lhq.entity.UserFile;
import org.lhq.entity.vo.ShareVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 分享服务
 * @author Wallace
 */
@FeignClient(name = "file-service")
@RequestMapping("share-feign")
public interface ShareService {
    @GetMapping("{id}")
    ShareVO getShare(@PathVariable("id") Long id);

    @PostMapping("page")
    Page<Share> getSharePage(@RequestBody Share share,
                            @RequestParam Long size,
                            @RequestParam Long pageNum);
}
